<!DOCTYPE html>
<html>

<head>
    <title>后台管理系统 </title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="__SKIN__/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <script src="__SKIN__/js/jquery.js"></script>
    <link href="__SKIN__/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href="__SKIN__/css/admin.css?v=1.1" rel="stylesheet">
    <script src="__SKIN__/bootstrap/js/bootstrap.min.js"></script>
    <!-- Latest compiled and minified CSS -->
    <link rel="stylesheet" href="__SKIN__/bootstrap-table/bootstrap-table.min.css">
    <!-- Latest compiled and minified JavaScript -->
    <script src="__SKIN__/bootstrap-table/bootstrap-table.min.js"></script>
    <!-- Latest compiled and minified Locales -->
    <script src="__SKIN__/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    <script src="__SKIN__/js/vue.min.js"></script>
    <script src="__SKIN__/js/jmzhfsform.js?v=1.11"></script>
</head>

<body class="gray">
    {include file="/sysconfig/toolbar" }

    <!--APP配置不同，只需配合控制器中显示即可，采用VUE+AJAX-->
    <div class="formpanel" id="app">


         

        <div class="formtitle">微信修改设置</div>
        <form class="form-horizontal" id="form1" method="post">

            <div class="hr-line-dashed"></div>

            <div class="row">
                    <div class="col-1">
                        随机SALT:
                    </div>
                    <div class="col-2  ">
    
                        <input type="text" class="form-control forminputsm" v-model="config.salt" required>
                    </div>
                    <div class="col">
                        <div class="myformrow_hint">
                            </div>
                    </div>
    
    
                </div>
    
                <div class="hr-line-dashed"></div>


            <div class="row">
                <div class="col-1">
                    微信用户表名:
                </div>
                <div class="col-2  ">

                    <input type="text" class="form-control forminputsm" v-model="config.tablename" required>
                </div>
                <div class="col">
                    <div class="myformrow_hint">
                        </div>
                </div>


                <div class="col-1">
                    跳转域名:
                </div>
                <div class="col-2  ">

                    <input type="text" class="form-control forminputsm" v-model="config.domain" required>
                </div>
                <div class="col">
                    <div class="myformrow_hint">

                        如http://www.baidu.com或为空（公众号需授权域名）</div>
                </div>

            </div>

            <div class="hr-line-dashed"></div>
            <div class="row">
                <div class="col-1">
                    微信AppID:
                </div>
                <div class="col-2  ">

                    <input type="text" class="form-control forminputsm" v-model="config.appid" required>
                </div>
                <div class="col">
                    <div class="myformrow_hint">
                        wx_appid</div>
                </div>


                <div class="col-1">
                    微信AppSecret:
                </div>
                <div class="col-2  ">

                    <input type="text" class="form-control forminputsm" v-model="config.appsecret" required>
                </div>
                <div class="col">
                    <div class="myformrow_hint">

                            公众号需设置IP白名单</div>
                </div>

            </div>
            <div class="hr-line-dashed"></div>



            <div class="row">
                <div class="col-1">
                    mch_id:
                </div>
                <div class="col-2  ">

                    <input type="text" class="form-control forminputsm" v-model="config.mch_id" required>
                </div>
                <div class="col">
                    <div class="myformrow_hint">

                        mch_id</div>
                </div>

                <div class="col-1">
                    key:
                </div>
                <div class="col-2  ">

                    <input type="text" class="form-control forminputsm" v-model="config.key" required>
                </div>
                <div class="col">
                    <div class="myformrow_hint">

                        key</div>
                </div>
            </div>
            <div class="hr-line-dashed"></div>



            <div class="row">
                <div class="col-1">
                    支付回调地址:
                </div>
                <div class="col-2  ">

                    <input type="text" class="form-control forminputsm" v-model="config.notifyurl" required>
                </div>
                <div class="col">
                    <div class="myformrow_hint">


                        notifyurl</div>
                </div>

                <div class="col-1">
                    登录回调地址:
                </div>
                <div class="col-2  ">

                    <input type="text" class="form-control forminputsm" v-model="config.returnurl" required>
                </div>
                <div class="col">
                    <div class="myformrow_hint">

                        returnurl

                    </div>
                </div>
            </div>
            <div class="hr-line-dashed"></div>


            <div class="row">
                <div class="col-1">
                    上传核验文件：
                </div>
                <div class="col-2  ">

                    <div class="upload-drag-box" id="upload1">
                      
                            <i class="fa fa-cloud-upload" aria-hidden="true"></i>
                        

                        <p>点击上传</p>
                        <input type="hidden" name="config.mp_verify" value="" v-model="config.logo">


                    </div>
                    <div style="display:none;"><input class="layui-upload-file" type="file" name="file"
                            uploaddir="/"></div>

                </div>
                <div class="col">
                    <div class="myformrow_hint">{{config.mp_verify_hint}}</div>
                </div>


                <div class="col-1">
                    商户key:
                </div>
                <div class="col-2  ">

                    <div class="upload-drag-box" id="upload1">
                        <i class="fa fa-cloud-upload" aria-hidden="true"></i>

                        <p>点击上传</p>
                        <input type="hidden" name="config.mch_key" value="" v-model="config.logo">


                    </div>
                    <div style="display:none;"><input class="layui-upload-file" type="file" name="file"
                            uploaddir="wxcert"></div>

                </div>
                <div class="col">
                    <div class="myformrow_hint">{{config.mch_key_hint}}</div>
                </div>

            </div>
            <div class="hr-line-dashed"></div>




        

            <div class="row">
                <div class="col-1">
                    商户cert:
                </div>
                <div class="col-2  ">

                    <div class="upload-drag-box" id="upload1">
                        <i class="fa fa-cloud-upload" aria-hidden="true"></i>
                        <p>点击上传</p>
                        <input type="hidden" name="config.mch_cert" value="" v-model="config.logo">


                    </div>
                    <div style="display:none;"><input class="layui-upload-file" type="file" name="file"
                            uploaddir="wxcert"></div>

                </div>
                <div class="col">
                    <div class="myformrow_hint">{{config.mch_cert_hint}}</div>
                </div>
            </div>
            <div class="hr-line-dashed"></div>





            <div class="row">
                <div class="col-1">

                </div>
                <div class="col-2 center">
                    <button class="btn btn-primary " type="button" onclick="saveconfig()">保存修改</button>
                </div>
                <div class="col">

                </div>
            </div>
        </form>

    </div>

    <script>
        var loadconfigurl = "{:url('sysconfig/loadconfig')}" + "?name={$name}";
        var saveconfigurl = "{:url('sysconfig/saveconfig')}" + "?name={$name}";
        var uploadimgurl = "{:url('/comm/upload/uploadimg')}" + "?name={$name}";
    </script>
    <script src="__SKIN__/js/jmzhfsconfig.js?v=1.251"></script>

    <script src="__SKIN__/js/jmzhfsconfigupload.js?v=1.251"></script>

</body>


</html>